package com.koron.css2.serviceManage.bean;

import com.koron.css2.serviceManage.utils.CommonUtils;
import org.bson.types.ObjectId;

import java.util.List;



/**
 * 结构化管理列表
 * @author 甄玉晴
 *
 */
public class AdminAreaBean {
	private String id;
	private String sname;
	private String parentId;
	private int isLeaf;
	private int status;
	private String createBy;
	private String  createTime;
	private String modifyBy;
	private String  modifyTime;
	private String longitude;
	private String  latitude;
	private String  areaNo;
	private String  fullName;
	private String areaName;
	private String group;
	
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	private List<ConcentratorListBean> concentrator;
	
	public List<ConcentratorListBean> getConcentrator() {
		return concentrator;
	}
	public void setConcentrator(List<ConcentratorListBean> concentrator) {
		this.concentrator = concentrator;
	}
	public String getAreaName() {
		return areaName;
	}
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public int getIsLeaf() {
		return isLeaf;
	}
	public void setIsLeaf(int isLeaf) {
		this.isLeaf = isLeaf;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getModifyBy() {
		return modifyBy;
	}
	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}
	public String getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getAreaNo() {
		return areaNo;
	}
	public void setAreaNo(String areaNo) {
		this.areaNo = areaNo;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public void setUpdateInfo(UserInfoBean userInfo) {
		setModifyBy(userInfo.getUserInfo().getName());
		setModifyTime(CommonUtils.getCurrentTime());
	}
	public void setCreateInfo(UserInfoBean userInfo) {
		setId(new ObjectId().toHexString());
		setCreateBy(userInfo.getUserInfo().getName());
		setCreateTime(CommonUtils.getCurrentTime());
	}
}
